git and how can I use it?gitVersion control:
Tools ➤ Global Options ➤ Git/SVN.
Make sure the first box is ticked and the “git.exe” (Windows) is included in the first box.
git config --global user.email "myemail@email.com" git config --global user.name "My commit name"
File ➤ New Project ➤ Version Control ➤ Git
.gitignore file.gitignore file specifies a pattern.git add .gitignore myfirstrepo.Rproj
git can do autocomplete for file names!
git add .gitignore myfirstrepo.Rproj git commit -m "My first commit"
Commits always have a commit message.
git add .gitignore myfirstrepo.Rproj git commit -m "My first commit" git push
Congrats! You have done it! Now local and remote repositories are up to date!
Before you start working on the project the next time:
git pull
Pull, work some more, repeat.
git diff